<?php 
class CPage extends CBasePage {
		
	public function __construct() {
		parent::__construct();
		return true;
	}	
	
	public function updatePagesActionByIds( $strAction, $arrintPageIds, $objDatabase ) {
		
		$strSql = 'UPDATE 
						`pages`
						
					SET
						`status` = ' . $strAction . '
					WHERE
						`id` IN(' . implode( ',', $arrintPageIds ) . ')';
		
		return parent::updateRecord( $strSql, $objDatabase );		
	}
	
	public function deletePagesByIds( $arrintPageIds, $objDatabase ) {
	
		$strSql = ' DELETE FROM `pages` WHERE `id` IN(' . implode( ',', $arrintPageIds ) . ')';
		return parent::deleteRecord( $strSql, $objDatabase );	
	}
}

?>